package cn.pconline.autoclub.entity;

import java.util.Date;

import org.gelivable.dao.Column;
import org.gelivable.dao.Entity;
import org.gelivable.dao.Id;
import org.gelivable.dao.Label;

/**
*
* @author zhoutianhuai
*/
@Entity(tableName = "ac_vote")
public class Vote {
	@Id
	@Column(name = "vote_id")
	/**投票Id**/
	private long voteId;
    
    @Label(value = "车友会Id")
    @Column(name = "club_id")
    /**车友会Id**/
    private long clubId;
    
    @Label(value = "投票标题")
    @Column(name = "vote_title")
    /**投票标题**/
    private String voteTitle;
    
    @Label(value = "已参加投票人数")
    @Column(name = "vote_count")
    /**已参加投票人数**/
    private long voteCount;
    
    @Label(value = "状态")
    @Column(name = "status")
    /**状态，1：正常，-1：删除**/
    private int status;
    
    @Label(value = "创建时间")
    @Column(name = "create_at")
    private Date createAt;
    @Label(value = "创建人")
    @Column(name = "create_by")
    private long createBy;
    @Label(value = "更新人")
    @Column(name = "update_by")
    private long updateBy;
    @Label(value = "更新时间")
    @Column(name = "update_at")
    private Date updateAt;
    
    /**状态，1：正常 **/
    public static int STATUS_NORMAL = 1;
    /**状态，-1：删除 **/
    public static int STATUS_DELETE = -1;
    /**已投票**/
    public static final int HAS_VOTED = 1;
    /**未投票**/
    public static final int NOT_VOTED = 0;
    /**投票题目最大长度**/
    public static final int VOTETITLE_MAX_LENGTH = 50;
	public long getVoteId() {
		return voteId;
	}
	public void setVoteId(long voteId) {
		this.voteId = voteId;
	}
	public long getClubId() {
		return clubId;
	}
	public void setClubId(long clubId) {
		this.clubId = clubId;
	}
	public String getVoteTitle() {
		return voteTitle;
	}
	public void setVoteTitle(String voteTitle) {
		this.voteTitle = voteTitle;
	}
	public long getVoteCount() {
		return voteCount;
	}
	public void setVoteCount(long voteCount) {
		this.voteCount = voteCount;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public Date getCreateAt() {
		return createAt;
	}
	public void setCreateAt(Date createAt) {
		this.createAt = createAt;
	}
	public long getCreateBy() {
		return createBy;
	}
	public void setCreateBy(long createBy) {
		this.createBy = createBy;
	}
	public long getUpdateBy() {
		return updateBy;
	}
	public void setUpdateBy(long updateBy) {
		this.updateBy = updateBy;
	}
	public Date getUpdateAt() {
		return updateAt;
	}
	public void setUpdateAt(Date updateAt) {
		this.updateAt = updateAt;
	}
    
    
    
}
